Optimal. Leaf size=74 \[ \frac{a^2 \log (a+b \sinh (c+d x))}{b d \left (a^2+b^2\right )}-\frac{a \tan ^{-1}(\sinh (c+d x))}{d \left (a^2+b^2\right )}+\frac{b \log (\cosh (c+d x))}{d \left (a^2+b^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.159761, antiderivative size = 74, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {2837, 12, 1629, 635, 203, 260} \[ \frac{a^2 \log (a+b \sinh (c+d x))}{b d \left (a^2+b^2\right )}-\frac{a \tan ^{-1}(\sinh (c+d x))}{d \left (a^2+b^2\right )}+\frac{b \log (\cosh (c+d x))}{d \left (a^2+b^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2837
Rule 12
Rule 1629
Rule 635
Rule 203
Rule 260
Rubi steps
\begin{align*} \int \frac{\sinh (c+d x) \tanh (c+d x)}{a+b \sinh (c+d x)} \, dx &=-\frac{b \operatorname{Subst}\left (\int \frac{x^2}{b^2 (a+x) \left (-b^2-x^2\right )} \, dx,x,b \sinh (c+d x)\right )}{d}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{x^2}{(a+x) \left (-b^2-x^2\right )} \, dx,x,b \sinh (c+d x)\right )}{b d}\\ &=-\frac{\operatorname{Subst}\left (\int \left (-\frac{a^2}{\left (a^2+b^2\right ) (a+x)}+\frac{b^2 (a-x)}{\left (a^2+b^2\right ) \left (b^2+x^2\right )}\right ) \, dx,x,b \sinh (c+d x)\right )}{b d}\\ &=\frac{a^2 \log (a+b \sinh (c+d x))}{b \left (a^2+b^2\right ) d}-\frac{b \operatorname{Subst}\left (\int \frac{a-x}{b^2+x^2} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right ) d}\\ &=\frac{a^2 \log (a+b \sinh (c+d x))}{b \left (a^2+b^2\right ) d}+\frac{b \operatorname{Subst}\left (\int \frac{x}{b^2+x^2} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right ) d}-\frac{(a b) \operatorname{Subst}\left (\int \frac{1}{b^2+x^2} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right ) d}\\ &=-\frac{a \tan ^{-1}(\sinh (c+d x))}{\left (a^2+b^2\right ) d}+\frac{b \log (\cosh (c+d x))}{\left (a^2+b^2\right ) d}+\frac{a^2 \log (a+b \sinh (c+d x))}{b \left (a^2+b^2\right ) d}\\ \end{align*}
Mathematica [C] time = 0.085892, size = 78, normalized size = 1.05 \[ \frac{2 a^2 \log (a+b \sinh (c+d x))+b (b+i a) \log (-\sinh (c+d x)+i)+b (b-i a) \log (\sinh (c+d x)+i)}{2 b d \left (a^2+b^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.001, size = 153, normalized size = 2.1 \begin{align*} -{\frac{1}{bd}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) }-{\frac{1}{bd}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) }+{\frac{{a}^{2}}{bd \left ({a}^{2}+{b}^{2} \right ) }\ln \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}a-2\,\tanh \left ( 1/2\,dx+c/2 \right ) b-a \right ) }+4\,{\frac{b\ln \left ( \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1 \right ) }{d \left ( 4\,{a}^{2}+4\,{b}^{2} \right ) }}-8\,{\frac{a\arctan \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) }{d \left ( 4\,{a}^{2}+4\,{b}^{2} \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.62767, size = 149, normalized size = 2.01 \begin{align*} \frac{a^{2} \log \left (-2 \, a e^{\left (-d x - c\right )} + b e^{\left (-2 \, d x - 2 \, c\right )} - b\right )}{{\left (a^{2} b + b^{3}\right )} d} + \frac{2 \, a \arctan \left (e^{\left (-d x - c\right )}\right )}{{\left (a^{2} + b^{2}\right )} d} + \frac{b \log \left (e^{\left (-2 \, d x - 2 \, c\right )} + 1\right )}{{\left (a^{2} + b^{2}\right )} d} + \frac{d x + c}{b d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.30851, size = 284, normalized size = 3.84 \begin{align*} -\frac{{\left (a^{2} + b^{2}\right )} d x + 2 \, a b \arctan \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right ) - a^{2} \log \left (\frac{2 \,{\left (b \sinh \left (d x + c\right ) + a\right )}}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right ) - b^{2} \log \left (\frac{2 \, \cosh \left (d x + c\right )}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right )}{{\left (a^{2} b + b^{3}\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sinh{\left (c + d x \right )} \tanh{\left (c + d x \right )}}{a + b \sinh{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.52435, size = 128, normalized size = 1.73 \begin{align*} \frac{\frac{a^{2} \log \left ({\left | b e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a e^{\left (d x + c\right )} - b \right |}\right )}{a^{2} b + b^{3}} - \frac{d x}{b} - \frac{2 \, a \arctan \left (e^{\left (d x + c\right )}\right )}{a^{2} + b^{2}} + \frac{b \log \left (e^{\left (2 \, d x + 2 \, c\right )} + 1\right )}{a^{2} + b^{2}}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]